package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.MessageOut;
import org.springframework.stereotype.Service;

/**
 * Description: MessageOutService.java
 * 
 * @version 李韦
 */

@Service
public interface MessageOutService {
	
	
	/** 
	 * Description: 插入一条发件记录
	 * @param message
	 * @return
	 */
	public boolean insertMessage (MessageOut message);
	
	/** 
	 * Description: 删除一条发件记录
	 * @param message
	 * @return
	 */
	public String deleteMessage (final long id);

	/**
	 * 
	 * Description: 列出发件箱的所有信息 
	 * @param  
	 * @return
	 */
	public List<MessageOut> listAllMessageOut();
	
	/**
	 * Description: 返回发件箱总条数
	 * @return
	 */
	public int getMessageOutRows();
	

	/**
	 * Description: 返回发件箱成功的总条数
	 * @return
	 */
	public int getMessageOutSuccessRows();
	
	@SuppressWarnings("unchecked")
	public List getMessageList(int pageSize, int startRow) ;

	
}
